package com.neusoft.neuiotms.dcom.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.auth.common.bean.UserBean;
import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcom.dto.InspectionRuleDTO;

public interface InspectionRuleService {

    List<InspectionRuleDTO> index(Searchable searchable, final UserBean user);

    Page<InspectionRuleDTO> page(Searchable searchable, Pageable pageable, UserBean user);

    InspectionRuleDTO create(final InspectionRuleDTO dto, final UserBean user);

    InspectionRuleDTO update(final Long id, final InspectionRuleDTO dto, final UserBean user);

    InspectionRuleDTO detail(final Long id);

    void delete(final Long id);

    void updateStatus(final Long id, final String status);

}
